package placemodel

type PlaceLogisticsModel struct {
	Id               int    `gorm:"primary_key;column:id" json:"id"`
	PlaceId          int    `gorm:"column:place_id" json:"placeId"`
	Status           uint8  `gorm:"column:status" json:"status"` // '状态 1-在途中2-派送中3-已签收4-派送失败5-揽收6-退回7-转单8-疑难9-退签10-待清关11-清关中12-已清关13-清关异常
	MailPhone        string `gorm:"column:mail_phone" json:"mailPhone"`
	ReceivePhone     string `gorm:"column:receive_phone" json:"receivePhone"`
	LogisticsOrderNo string `gorm:"column:logistics_order_no" json:"logisticsOrderNo"`
	LogisticsInfo    string `gorm:"column:logistics_info" json:"logisticsInfo"`
	CreateTime       string `gorm:"column:create_time" json:"createTime"`
	UpdateTime       string `gorm:"column:update_time" json:"updateTime"`
	ReceiveTime      string `gorm:"column:receive_time" json:"receiveTime"`
	ReturnStatus     uint8  `gorm:"column:return_status" json:"returnStatus"`
	ReturnTime       string `gorm:"column:return_time" json:"returnTime"`
	Message          string `gorm:"column:message" json:"message"`
}

// model init
func NewPlaceLogistics() *PlaceLogisticsModel {
	return &PlaceLogisticsModel{}
}

// TableName
func (m *PlaceLogisticsModel) TableName() string {
	return "logistics"
}
